home *** CD-ROM | disk | FTP | other *** search
- >Hello guys
- >
- >I have a small problem that I would like some help to. I am creating
- >a game and on the intro-screen I would like a picture to show up.
- >First the palette would be $FFF on all 16 colours, but they would
- >slowly fade down to their origin colours. Please... I really need
- >a routine like that.
- >If you guys even get this mail then please reply on it. I'm not sure
- >if my mails gets to the list... =/
- >
- >Well... Seeya... /Marco
-
-
- Here's 2 examples of how to do this:
-
- -------------------------------
- Screen open 0,640,256,16,hires
- Rem Load your gfx here
- Dim C(16)
- For i=0 to 15
- c(i)=colour(i) : Rem Save current palette in c()
- colour i,$FFF : Rem Set current palette to $FFF
- next i
- Rem Fade to saved palette at speed 5
- fade
- 5,c(0),c(1),c(2),c(3),c(4),c(5),c(6),c(7),c(8),c(9),c(10),c(11),c(12),c(13),
- c(14),c(15)
- -------------------------------
- Screen open 0,640,256,16,hires : Screen hide 0
- Ink 4 : Bar 10,10 To 50,50 : Rem Load your gfx here
- Screen open 1,640,256,16,hires
- Screen copy 0 To 1 : Screen 1 : Rem Copy the contents of screen 0 to Screen
- 1
- For i=0 to 15
- Colour I,$FFF : Rem Set palette to $FFF on screen 1
- Next i
- Fade 5 To 0 : Rem Fade screen 1 to the palette of screen 0 at speed 5
- -------------------------------
-
- Hope this helps,
-
- // Mike
-
-
-
-